package sanrenxing.dayEnd.backRepertoryTotal.domain;

import java.io.Serializable;
import java.util.Date;

public class BoundCountExtrat implements Serializable {
    //债券名称
    private String bondName;
    //债券代码
    private String bondId;
    //票面利率
    private Double coupRate;
    //债券数量
    private Integer bondIdCount;
    //债券类型
    private Integer bondType;
    //计息起始日
    private Date coupNum;
    //业务日期
    private Date dates;
    //计息截止日
    private Date businDate;
    //利息
    private Double bondInterest;
    //统计状态
    private int states;

    public BoundCountExtrat() {
    }

    public BoundCountExtrat(String bondName, String bondId, Double coupRate, Integer bondIdCount, Integer bondType, Date coupNum, Date dates, Date businDate, Double bondInterest, int states) {
        this.bondName = bondName;
        this.bondId = bondId;
        this.coupRate = coupRate;
        this.bondIdCount = bondIdCount;
        this.bondType = bondType;
        this.coupNum = coupNum;
        this.dates = dates;
        this.businDate = businDate;
        this.bondInterest = bondInterest;
        this.states = states;
    }

    public String getBondName() {
        return bondName;
    }

    public void setBondName(String bondName) {
        this.bondName = bondName;
    }

    public String getBondId() {
        return bondId;
    }

    public void setBondId(String bondId) {
        this.bondId = bondId;
    }

    public Double getCoupRate() {
        return coupRate;
    }

    public void setCoupRate(Double coupRate) {
        this.coupRate = coupRate;
    }

    public Integer getBondIdCount() {
        return bondIdCount;
    }

    public void setBondIdCount(Integer bondIdCount) {
        this.bondIdCount = bondIdCount;
    }

    public Integer getBondType() {
        return bondType;
    }

    public void setBondType(Integer bondType) {
        this.bondType = bondType;
    }

    public Date getCoupNum() {
        return coupNum;
    }

    public void setCoupNum(Date coupNum) {
        this.coupNum = coupNum;
    }

    public Date getDates() {
        return dates;
    }

    public void setDates(Date dates) {
        this.dates = dates;
    }

    public Date getBusinDate() {
        return businDate;
    }

    public void setBusinDate(Date businDate) {
        this.businDate = businDate;
    }

    public Double getBondInterest() {
        return bondInterest;
    }

    public void setBondInterest(Double bondInterest) {
        //得出天数
        long daysBetween=(businDate.getTime()-coupNum.getTime())/(60*60*24*1000);
        this.bondInterest = ((bondIdCount*coupRate*100)/365);
    }

    public int getStates() {
        return states;
    }

    public void setStates(int states) {
        this.states = states;
    }
}
